import request from '@/utils/request'
export function listUnit(query) {
  return request({
    url: '/mes/unit/list',
    method: 'get',
    params: query
  })
}

export function addUnit(data) {
  return request({
    url: '/mes/unit/add',
    method: 'post',
    data: data
  })
}
